package com.cell.pojo.entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_announcement")
public class Announcement implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章标题
     */
    private String tittle;

    /**
     * 文章内容
     */
    private String text;

    /**
     * 图片链接
     */
    private String imgUrl;

    /**
     * 发布时间
     */
    private LocalTime releaseTime;

    /**
     * 逻辑删除字段,0表示不删除，1表示删除
     */
    @TableLogic
    private Integer deleted;


}
